package com.oracle.lingshangejia.utils;



import android.util.Log;

import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;

/**
 * ui层用来访问网络结果的观察者
 */

public abstract class ObserverOnNext<T> implements Observer<T> {
    @Override
    public void onSubscribe(Disposable d) {

    }



    @Override
    public void onComplete() {

    }

    @Override
    public void onError(Throwable e) {
        MyToast.show(e.getMessage());
        Log.i("lingshang", e.getMessage());


    }
}
